// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import * as names from 'names.js';

function main() {
    startApplication("keypadnavigation");
    type(waitForObject(names.scrollAreaLineEditQLineEdit), "<Tab>");
    type(waitForObject(names.scrollAreaHorizontalSliderQSlider), "<Tab>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/99");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/98");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/97");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/96");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/95");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/96");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/97");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/98");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/99");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/00");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/01");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/02");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/1/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/2/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/3/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "1/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "2/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "3/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Up>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Right>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Left>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "4/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "3/4/03");
    type(waitForObject(names.scrollAreaDateEditQDateEdit), "<Down>");
    test.compare(waitForObjectExists(names.scrollAreaQtSpinboxLineeditQLineEdit).displayText, "2/4/03");
}
